package top.zhmq.goodsprovider.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *
 *
 * @author Glory
 * @classname CartDao
 * @create 2021-06-06 20:23
 */

@Mapper
public interface CartDao {

    int deleteCart(@Param(value = "gid") int gid);//根据ID删除订单

    int insertOrder(@Param(value = "goodsname") String goodsname,
                    @Param(value = "number") int number,
                    @Param(value = "price") int price,
                    @Param(value = "uid") int uid);//购买商品后添加一条订单数据
}
